home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Language/OS - Multiplatform Resource Library
/
LANGUAGE OS.iso
/
russell
/
russell.lha
/
examples
/
string_test.r
< prev
next >
Wrap
Text File
|
1989-12-29
|
362b
|
19 lines
let
c == ChStr$New[]
; s == ChStr$New[]
; newlinecode == 10
; newline == func[]
{ put[ ChStr$In[newlinecode] ] }
in
put["enter a line:"]
; newline[]
; s := (c := getchar[FS])
; do
Out[c] <> newlinecode ==> c := getchar[FS]
; s := s ^* c
od
; put["thanks, your string was"]
; newline[]
; put[ s ]
ni